import pylab as p
fig = p.figure()
ax1 = fig.add_subplot(111)
ax2 = ax1.twinx()
x = [1,2,3,4,1,2,3,4,5,6,3,3,23,2,32,2,2,2,2,2,12,12,1,2,12,3,23,23,4,3,3,4,5,4,33,2,2,2,32,3,3,32,32,32,23,3]

ax1.hist(x,bins=10)

p.show()